<?php
class userComponents extends sfComponents
{
  public function executeMenu()
  {
     $this->greska_nbs = DbFinder::from('Greska')->where('ProfilId', $this->getUser()->getAttribute('id'))->where('Status', GreskaPeer::$status['resen'])->count();
     $this->upravnik = DbFinder::from('Profil')->findPk($this->getUser()->getAttribute('id'));
  }
}